<div class="content">

    <div class="container-fluid">
        <div id="pad-wrapper" class="users-list">
            <div class="row-fluid header">
            <h1 class="">添加新用户</h1>
                <span style="display: block"class="">&nbsp; </span>
                <span style="display: block"> &nbsp;</span>
                <span style="display: block">&nbsp; </span>
                <span style="display: block">&nbsp;</span>
                <?php $form = \yii\bootstrap\ActiveForm::begin(
                    [  'options'=>['class'=>'new_user_form event-input  '],
                        'fieldConfig'=>['template'=>'{input}{error}']
                        ]
                )?>
                <?php
                if(Yii::$app->session->hasFlash('info'))
                {
                    echo Yii::$app->session->getFlash('info');
                }
                ?>
               <?=$form->field($model,'username')->textInput(['class'=>'span4','placeholder'=>'姓名']);?>
                <?=$form->field($model,'useremail')->textInput(['class'=>'span4','placeholder'=>'邮箱']);?>
                <?=$form->field($model,'userpass')->passwordInput(['class'=>'span4','placeholder'=>'用户密码']);?>
                <?=$form->field($model,'checkpass')->passwordInput(['class'=>'span4','placeholder'=>'确认密码']);   ?>
                <?=\yii\helpers\Html::submitButton('添加',['class'=>'btn-primary btn'])?>
                <?php \yii\bootstrap\ActiveForm::end();?>

        </div>
    </div>
</div>
